import { IsNotEmpty, IsArray, ArrayNotEmpty } from 'class-validator';

export class CreateBlogDto {
  // @IsNotEmpty({ message: '标题不能为空' })
  // readonly head: string;
  @IsNotEmpty({ message: '标题不能为空' })
  readonly title: string;
  @IsNotEmpty({ message: '内容不能为空' })
  readonly content: string;
  @IsNotEmpty({ message: '分类不能为空' })
  // @IsArray({ message: '分类不能为空' })
  // @ArrayNotEmpty({ message: '分类不能为空' })
  readonly tagIds: string;
  readonly tags: string;
  readonly head: string;
  readonly banner: number;
  readonly id: string;
  readonly creationTime: number;
  readonly dimension: string;
  isAiSummary: boolean;
}
